package io.github.yotta.export.web.manager;

import io.github.yotta.common.api.model.ApiPageRequest;
import io.github.yotta.export.core.model.DataExportResult;
import io.github.yotta.export.core.model.XlsxDataExportResult;

import java.util.concurrent.Future;
import java.util.function.Consumer;

/**
 * @author yotta
 * @date 2023/10/30 17:04
 */
public interface ExcelExportManager {


    DataExportResult exportExcel(String name, ApiPageRequest exportQueryParam);

    Future<XlsxDataExportResult> exportExcelAsync(String name, ApiPageRequest exportQueryParam, Consumer<XlsxDataExportResult> onComplete);

}
